package com.pn.controller;

import com.pn.entity.Result;
import com.pn.service.StoreService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/statistics")
public class StatisticsController {
    @Resource
    private StoreService storeService;

    @RequestMapping("/store-invent")
    public Result countStoreInvent(){
        return storeService.countInventByStore();
    }

}
